const Router = require('koa-router')
const { verifyAuthLogin, verifyAuth } = require('../milldleware/auth.middleware')
const { login, success } = require('../controller/auth.controller')

const authRouter = new Router()

// 登录
authRouter.post('/login', verifyAuthLogin, login)
// 测试授权
authRouter.get('/testAuth', verifyAuth, success)

module.exports = authRouter